GXFreeBuffer
QuickDraw GX sends theGXFreeBuffer
message when waiting for the completion of a buffer that has been sent with theGXDumpBuffer
message. You can override theGXFreeBuffer
message if you are processing data and buffers in your own way. Your override of theGXFreeBuffer
message must match the following formal declaration:
OSErr MyFreeBuffer (gxPrintingBufferPtr *aPrintingBuffer);
aPrintingBuffer
- A pointer to the printing buffer structure that defines the buffer to wait for.
- function result
- An error code. The value
noErr
indicates that the operation was successful.DESCRIPTION
The default implementation of theGXFreeBuffer
message waits for processing of the buffer to complete using PAP, serial, or not-connected communications. It calls the asynchronous I/O functions of the Macintosh system software to wait for the buffer to complete transmission to the device. QuickDraw GX sends this message when it needs
a buffer and they are all full.You can override this message if you are processing data and buffers in your own way. You must not return from this message until the I/O completes or terminates with an error.
SPECIAL CONSIDERATIONS
You can send theGXFreeBuffer
message yourself if you are implementing your own buffering scheme.If you override the
GXDumpBuffer
message, you must also override theGXFreeBuffer
message.If you are implementing your own I/O mechanism, you need to perform a total override of the
GXFreeBuffer
message.RESULT CODES
The default implementation of the
gxSegmentLoadFailedErr A required code segment could not be found,
or there was not enough memory to load it.gxPrUserAbortErr The user has canceled printing. GXFreeBuffer
message can also return the communications errors that are listed in Table 4-2 on page 4-42.SEE ALSO
TheGXDumpBuffer
message is described in the previous section.The printing buffer structure is described on page 4-11.
Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help